<!--
 * @Author: Vi卡农
 * @Date: 2020-05-07 15:05:35
 * @LastEditTime: 2020-05-07 15:12:40
 * @Description: -跟进列表-
 * @FilePath: \cshf_admin\src\views\modules\intention\page\housefollow.vue
 -->
<template>
  <el-card shadow="never" class="aui-card--fill">
    <div class="mod-house__housefollow}">
      <el-table v-loading="dataListLoading" :data="dataList" border style="width: 100%;">
        <el-table-column prop="content" label="跟进内容" header-align="center" align="center"></el-table-column>

        <el-table-column prop="creatorName" label="跟进人" header-align="center" align="center"></el-table-column>
        <el-table-column prop="deptName" label="跟进人部门" header-align="center" align="center"></el-table-column>
        <el-table-column prop="createDate" label="跟进时间" header-align="center" align="center"></el-table-column>
      </el-table>
      <el-pagination
        :current-page="page"
        :page-sizes="[10, 20, 50, 100]"
        :page-size="limit"
        :total="total"
        layout="total, sizes, prev, pager, next, jumper"
        @size-change="pageSizeChangeHandle"
        @current-change="pageCurrentChangeHandle"
      ></el-pagination>
    </div>
  </el-card>
</template>

<script>
import mixinViewModule from "@/mixins/view-module";
export default {
  mixins: [mixinViewModule],
  data() {
    return {
      mixinViewModuleOptions: {
        getDataListURL: "/intention/intentioninfo/pageFollow",
        getDataListIsPage: true
      },
      dataForm: {
        id: this.intentionId
      }
    };
  },
  props: ["intentionId"],
  methods: {},
  watch: {
    intentionId: {
      handler(newValue, oldValue) {
        this.dataForm.id = newValue;
        this.query();
      }
    }
  }
};
</script>
